-
-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(ui/pull-refresh): add class #399
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #399 +/- ##
=======================================
Coverage 96.48% 96.49%
=======================================
Files 217 217
Lines 5098 5107 +9
Branches 987 981 -6
=======================================
+ Hits 4919 4928 +9
Misses 175 175
Partials 4 4
Continue to review full report at Codecov.
|
@@ -45,7 +47,7 @@ export default defineComponent({ | |||
|
|||
return ( | |||
<div | |||
class={['var-popup__overlay', overlayClass]} | |||
class={[classes(n('overlay')), overlayClass]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这地方直接都用classes包起来吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
包起来报错了浩哥
@touchstart="touchStart" | ||
@touchmove="touchMove" | ||
@touchend="touchEnd" | ||
@touchcancel="touchEnd" | ||
> | ||
<div | ||
class="var-pull-refresh__control var-elevation--2" | ||
:class="[isSuccess ? 'var-pull-refresh__control-success' : null]" | ||
:class="classes(n('control'), 'var-elevation--2', isSuccess ? n('control-success') : '')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
条件判断用数组
<var-icon | ||
:name="iconName" | ||
:transition="200" | ||
:class="classes(n('icon'), refreshStatus === 'loading' ? n('animation') : '')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里和上面一样
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改好惹
Checklist
Change information